package com.yuntu.chapter3;

import java.util.Scanner;

/**
 * @author MrWang-shuizhishuiheshui
 * @description if    else if  ...  else
 */
public class Demo4 {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        System.out.println("请输入成绩");
        int score =input.nextInt();

        //判断条件
        /*
        多重if  : if只能有一个  else if可以有无数个  else可有可无  (条件不能随意切换)
         */
        if (score>90){
            System.out.println("优秀");
        }else if (score>80){
            System.out.println("优");
        }else if (score>70){
            System.out.println("良");
        }else if (score>60){
            System.out.println("及格");
        }else{
            System.out.println("差");
        }

    }
}
